<?php
	
	namespace Aspic\Form\Element;
	use Aspic\Security\Security as S;
	
	/**
	* Submit form element
	*/
	class Submit extends AbstractBasicElement { // Do not extends input because it has no label !

		public function __construct($value, $options = array(), array $attributes = array()) {
			parent::__construct($options, $attributes);
			
			$this->attr('value', $value);
		}
		
		public function outElement() {
			$out = '<input type="submit" '.$this->getAttrsStr().'/>';

			return $out;
		}

	}	
	
?>